package com.alibaba.feign;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author YL
 * @date 21:46 2021/10/14
 */
@Slf4j
@RestController
@RequestMapping("/feign")
public class FeignServerController {

    @GetMapping("/say/{name}")
    public String sayHello(@PathVariable("name") String name) {
        log.debug("哈哈哈  " + name);
        System.out.println("哈哈哈   " + name);
        return name + "say hello";
    }
}
